import { Column, Entity, JoinColumn, ManyToOne } from 'typeorm'
import { Staff } from 'src/modules/staff/entities/staff.entity'
import { App } from 'src/app.entity'
@Entity()
export class ChangeSalary extends App {
  @ManyToOne(() => Staff)
  @JoinColumn({ name: 'staff_id' })
  staff: Staff
  @Column({type:'int',name:'before_salary'})
  beforeSalary: number
  @Column({type:'int',name:'after_salary'})
  afterSalary: number
  @Column({ type: 'varchar', length: 100 })
  reason: string
  @Column({ type: 'varchar', length: 10 })
  date: string
  @Column({ type: 'varchar', length: 200, nullable: true })
  remark?: string
}
